<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<html>
<head>
    <title>测试主界面</title>
</head>
<body>
    <form action="/User/login" METHOD="post">
        <span style="color: red">用户名:</span><input type="text" name="userName" value="${user.name}" placeholder="用户名/邮箱"/>
        <span style="color: red">密码:</span><input type="password" name="password" value="${user.password}" placeholder="密码"/><br>
        <br>
        <input type="submit" value="登录">&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" value="注册" onclick="location='WebContent/view/register.jsp'">
    </form>
</body>
</html>
